<%--
  Created by IntelliJ IDEA.
  User: ch-hui
  Date: 15/12/24
  Time: 下午9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>
<html>
<head>
  <title>配方单</title>
</head>
<body>

<div class="row">
  <div class="col-lg-12">
    <div class="ibox float-e-margins">
      <div class="ibox-title">
        <h5>饲料配方单 <small>清单</small></h5>
        <div class="ibox-tools">
          <a class="collapse-link">
            <i class="fa fa-chevron-up"></i>
          </a>
          <a class="close-link">
            <i class="fa fa-times"></i>
          </a>
        </div>
      </div>

      <div class="ibox-content">

        <%--<div class="ibox-tools">--%>
        <%--<button class="btn btn-primary" type="button"><i class="fa fa-plus"></i>&nbsp;新增配方</button>--%>
        <%--</div>--%>

        <table class="table table-striped table-bordered table-hover dataTables-example">
          <thead>
          <tr>
            <th>序号</th>
            <th>配方名称</th>
            <th>配方成本（元／kg）</th>
            <th>操作</th>
          </tr>
          </thead>

          <tbody>
          <c:forEach items="${recipes}" var="recipe" varStatus="scope">
            <tr>
              <td>${scope.count}</td>
              <td>
                <%--<a href="${BASE}/recipe/${recipe.id}/report">${recipe.name}</a>--%>
                  <a href="${BASE}/recipe/edit/${recipe.id}">${recipe.name}</a>
              </td>
              <%--<td>${recipe.createTime}</td>--%>
              <td><fmt:formatNumber type="currency" var="money">${recipe.recipeCost}</fmt:formatNumber><c:out value="${money}"></c:out></td>
              <%--<td>${recipe.totalProduction}</td>--%>
              <td>
                <%--<a href="${BASE}/recipe/${recipe.id}/report" target="_blank">--%>
                  <%--<i class="fa fa-file-excel-o"></i> 打印报表--%>
                <%--</a>--%>
                <a href="${BASE}/recipe/test/report">打印</a>&nbsp;&nbsp;<a href="${BASE}/recipe/test/report">调整配方</a>
              </td>
            </tr>
          </c:forEach>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript" src="${BASE}/www/script/recipe/recipe.js"></script>
</body>
</html>
